package com.ttj.domain.oracle;

import java.io.Serializable;

public class CardInfoWithBLOBs extends CardInfo implements Serializable {
    /**
     * 发送数据
     */
    private String senddata;

    /**
     * 回收数据
     */
    private String resdata;

    private static final long serialVersionUID = 1L;

    /**
     * 发送数据
     */
    public String getSenddata() {
        return senddata;
    }

    /**
     * 发送数据
     */
    public void setSenddata(String senddata) {
        this.senddata = senddata;
    }

    /**
     * 回收数据
     */
    public String getResdata() {
        return resdata;
    }

    /**
     * 回收数据
     */
    public void setResdata(String resdata) {
        this.resdata = resdata;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", senddata=").append(senddata);
        sb.append(", resdata=").append(resdata);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CardInfoWithBLOBs other = (CardInfoWithBLOBs) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getCardno() == null ? other.getCardno() == null : this.getCardno().equals(other.getCardno()))
            && (this.getMoney() == null ? other.getMoney() == null : this.getMoney().equals(other.getMoney()))
            && (this.getIndate() == null ? other.getIndate() == null : this.getIndate().equals(other.getIndate()))
            && (this.getHostflowno() == null ? other.getHostflowno() == null : this.getHostflowno().equals(other.getHostflowno()))
            && (this.getErrorInfo() == null ? other.getErrorInfo() == null : this.getErrorInfo().equals(other.getErrorInfo()))
            && (this.getCredit() == null ? other.getCredit() == null : this.getCredit().equals(other.getCredit()))
            && (this.getBalanceMoney() == null ? other.getBalanceMoney() == null : this.getBalanceMoney().equals(other.getBalanceMoney()))
            && (this.getSenddata() == null ? other.getSenddata() == null : this.getSenddata().equals(other.getSenddata()))
            && (this.getResdata() == null ? other.getResdata() == null : this.getResdata().equals(other.getResdata()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getCardno() == null) ? 0 : getCardno().hashCode());
        result = prime * result + ((getMoney() == null) ? 0 : getMoney().hashCode());
        result = prime * result + ((getIndate() == null) ? 0 : getIndate().hashCode());
        result = prime * result + ((getHostflowno() == null) ? 0 : getHostflowno().hashCode());
        result = prime * result + ((getErrorInfo() == null) ? 0 : getErrorInfo().hashCode());
        result = prime * result + ((getCredit() == null) ? 0 : getCredit().hashCode());
        result = prime * result + ((getBalanceMoney() == null) ? 0 : getBalanceMoney().hashCode());
        result = prime * result + ((getSenddata() == null) ? 0 : getSenddata().hashCode());
        result = prime * result + ((getResdata() == null) ? 0 : getResdata().hashCode());
        return result;
    }
}